<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ include file="/public/head.jspf" %>
    <c:set value="${pageContext.request.contextPath }" var="booking" />
    
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<script type="text/javascript" >

	function isSelectOne(){
		var selRows = $('#table').datagrid('getSelected');  
		$('#dd').dialog({    
		    title: 'My Dialog',    
		    width: 600,    
		    height: 400,    
		    closed: false,    
		    cache: false,    
		    href: '${booking}/mrg/editData.jsp',    
		    modal: true   
		});    
		//$('#dd').dialog('refresh', 'new_content.php');  

	}

</script>
</head>
<body>
	<div style="">
	<a id="btn" href="javascript:isSelectOne()" class="easyui-linkbutton" data-options="iconCls:'icon-add'">新增</a>
	<a id="btn" href="javascript:isSelectOne()"  class="easyui-linkbutton" data-options="iconCls:'icon-edit'">修改</a>
	<table class="easyui-datagrid" id="table"title="商家管理" style="width:700px;height:250px"
			data-options="singleSelect:true,collapsible:true,url:'mrgAction_querySeller',method:'get'">
		<thead>
			<tr>
				<th data-options="field:'ck',checkbox:true"></th>
				<th data-options="field:'id',width:80">ID</th>
				<th data-options="field:'sellername',width:100">商家名称</th>
				<th data-options="field:'mark',width:80,align:'right'">备注</th>
		<!-- 		<th data-options="field:'unitcost',width:80,align:'right'">Unit Cost</th>
				<th data-options="field:'attr1',width:250">Attribute</th>
				<th data-options="field:'status',width:60,align:'center'">Status</th> -->
			</tr>
		</thead>
	</table>
 </div>
	<div id="dd"></div>  

</body>
</html>